package oo7.printer;

public class PrinterTest {
	public static void main(String[] args) {
		Printer p = new Printer("惠普打印机", 1399);

		// 如下两步是关键
		p.setInk(new ColorFulInk());
		p.setPaper(new A4());

		p.print("We change lives");
		System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>...");
		p.setInk(new WhiteAndBlackInk());// 换墨水
		p.print("教育改变生活");
	}
}
